



async function a(){
  return new Promise(function(resolve, reject){
    resolve('success')
  }).then((resolve, reject)=>{
    resolve('error')
  })
}

a();
